import request from '@/utils/request'

export function communityList(data) {
	return request({
		url: '/community/list',
		method: 'get',
		params: data
	})
}

export function savecommunity(data) {
	return request({
		url: '/community',
		method: 'post',
		data: data
	})
}

export function likeCommunity(id) {
	return request({
		url: '/community/liked/' + id,
		method: 'post'
	})
}

export function saveCommunityComment(data) {
	return request({
		url: '/community/comment',
		method: 'post',
		data: data
	})
}

export function communityCommentList(data) {
	return request({
		url: '/community/comment/list',
		method: 'get',
		params: data
	})
}